import axios from "axios";

const registerUser = async (user) => {
  try {
    const response = await axios.post("https://api.example.com/register", user);
    return response.data;
  } catch (error) {
    throw new Error("注册失败", error);
  }
};

export default {
  registerUser,
};
